//
//  UIimageView+extension.swift
//  Weibo(Swift)
//
//  Created by 阳 on 16/7/10.
//  Copyright © 2016年 阳. All rights reserved.
//

import UIKit
import SDWebImage
extension UIImageView
{
    convenience init(imageName : String)
    {
        self.init()
        let image = UIImage(named: imageName)
        self.image = image
        
    }
    func medium_SetImageWithURL(urlStr : String ,placeHolder: String )
    {
        self.sd_setImageWithURL(NSURL(string: urlStr), placeholderImage: UIImage(named: placeHolder))
    }
}
